package com.fjnu.teaching;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.sql.Connection;

/**
 * @desc:
 * @author: Ping
 * @date: 2025/9/12 9:10
 *
 * Dao:   Data access object :  intraction with DB, crud:
 *        Service
 * @Repository : @Component and DB access semantics.
 *
 */
@Repository
public class TeachingDao {

//    @Autowired
    private Connection conn ;

    Log log = LogFactory.getLog(TeachingDao.class);

    public int insert(Teacher teacher, Course course) {
        log.info("insert a teaching record");
        return 0 ;
    }
    public int insert(Teaching teaching) {
        log.info("insert a teaching record");
        return 0 ;
    }

    public int delete(Teacher teacher, Course course) {
        /**
         * todo: log  删除 teaching 关于 teacher and course.
         */
        return 0 ;
    }


}
